package com.zy.design.pattern.adapter.comb;

import com.zy.design.pattern.adapter.base.IFileSys;

/**
 * @author zhaoyi
 * @date 2021/4/14 17:04
 */
public class MinioFileAdapter implements IFileSys {

    private MinioFile minioFile;

    public MinioFileAdapter(MinioFile minioFile) {
        this.minioFile = minioFile;
    }

    @Override
    public void upFile(byte[] data, String path) {
        minioFile.upFile(data, path);
    }

    @Override
    public byte[] getFile(String path) {
        return minioFile.getFile(path);
    }
}
